﻿package net.jmp0.toast.entities.effects 
{
	import net.jmp0.toast.entities.bases.GameElement;
	import punk.Actor;
	
	/**
	 * A small explosion, destroys itself after looping it's animation
	 * @author Thodd
	 */
	public class SmallExplosion extends GameElement
	{
		[Embed(source = '../../res/small_explosion.png')] private var imgSmallExplosion:Class;

		public function SmallExplosion(x:int, y:int) 
		{
			super(x, y);
			this.sprite = FP.getSprite(imgSmallExplosion, 22, 20, false, false, 2, 0, true);
			this.delay = (30 / 6);
			FP.world.add(this);
			this.anim = this.destroy;
		}
		
	}

}